/*
* 公共的返回
*   Object.assign(ret , configVar.readfile);
    deferred.reject(ret);
* */


const code = {
    level:{normal:1,member:2}, //账户等级 1 普通用户，2 会员用户
    type:{normal:1,admin:2,super:3}, //账户等级 1 普通用户，2 会员用户
    success:{code:'1',msg:"成功"}, //成功
    param:{code:'-1',msg:"参数错误"},
    dbSave:{code:"-2",msg:"数据库保存数据错误"},
    invalid:{code:"-3",msg:"无效的父id"},
    dbUpdate:{code:"-4",msg:"更新数据库错误"},
    dbFind:{code:"-4",msg:"数据库查找错误"},
    fileUp:{code:"-5",msg:"文件上传失败"},
    rename:{code:"-6",msg:"文件重命名失败"},
    fileRemove:{code:"-7",msg:"文件删除失败"},
    dbRemove:{code:"-8",msg:"数据库删除数据错误"},
    author:{code:"-9",msg:"用户名或者密码错误"},
    login:{code:"-10",msg:"需要登录"},
}

module.exports = code;